package com.example.capsule_chat0322.bean;


import java.io.Serializable;

/**
 * @Author: zhuzhiming
 * @Date: 2022/4/27 20:15
 */

public class MessageBean implements Serializable {

    private Integer id;
    private int msgId;
    private int localMsdId;
    private String field;
    private String senderId;
    private String senderName;
    private String receiverId;
    private int msgType = -1;    // 1.文字 2.图片 3.视频 4.文件 5.语音 6.好友申请
    private String content;
    private String createTime;
    private int status;
    private int actionType;
    private boolean isOneToOne;
    private String roomName;
    private String imei;
    private String bytes;
    private String fileName;
    private String sendTime;
    private String filePath;
    private String senderAvatarPath;
    private String fileSize;
    private int peopleChangeCount;
    private Msg msg;

    public int getLocalMsdId() {
        return localMsdId;
    }

    public void setLocalMsdId(int localMsdId) {
        this.localMsdId = localMsdId;
    }

    public int getMsgId() {
        return msgId;
    }

    public void setMsgId(int msgId) {
        this.msgId = msgId;
    }

    public Msg getMsg() {
        return msg;
    }

    public void setMsg(Msg msg) {
        this.msg = msg;
    }

    public int getPeopleChangeCount() {
        return peopleChangeCount;
    }

    public void setPeopleChangeCount(int peopleChangeCount) {
        this.peopleChangeCount = peopleChangeCount;
    }

    public String getSenderName() {
        return senderName;
    }

    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getSenderAvatarPath() {
        return senderAvatarPath;
    }

    public void setSenderAvatarPath(String senderAvatarPath) {
        this.senderAvatarPath = senderAvatarPath;
    }


    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getSendTime() {
        return sendTime;
    }

    public void setSendTime(String sendTime) {
        this.sendTime = sendTime;
    }

    public String getBytes() {
        return bytes;
    }

    public void setBytes(String bytes) {
        this.bytes = bytes;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSenderId() {
        return senderId;
    }

    public String setSenderId(String senderId) {
        this.senderId = senderId;
        return senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public int getMsgType() {
        return msgType;
    }

    public void setMsgType(int msgType) {
        this.msgType = msgType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getActionType() {
        return actionType;
    }

    public void setActionType(int actionType) {
        this.actionType = actionType;
    }

    public boolean isOneToOne() {
        return isOneToOne;
    }

    public void setOneToOne(boolean oneToOne) {
        isOneToOne = oneToOne;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public MessageBean(int id, String senderId, String receiverId, int msgType, String content, String createTime, int status, int actionType, boolean isOneToOne, String room, String imei) {
        this.id = id;
        this.senderId = senderId;
        this.receiverId = receiverId;
        this.msgType = msgType;
        this.content = content;
        this.createTime = createTime;
        this.status = status;
        this.actionType = actionType;
        this.isOneToOne = isOneToOne;
        this.roomName = room;
        this.imei = imei;
    }

    public MessageBean(String imei) {
        this.imei = imei;
    }

    public MessageBean() {
    }


    @Override
    public String toString() {
        return "MessageBean{" +
                "id=" + id +
                ", field='" + field + '\'' +
                ", senderId='" + senderId + '\'' +
                ", senderName='" + senderName + '\'' +
                ", receiverId='" + receiverId + '\'' +
                ", msgType=" + msgType +
                ", content='" + content + '\'' +
                ", createTime='" + createTime + '\'' +
                ", status=" + status +
                ", actionType=" + actionType +
                ", isOneToOne=" + isOneToOne +
                ", roomName='" + roomName + '\'' +
                ", imei='" + imei + '\'' +
                ", bytes='" + bytes + '\'' +
                ", fileName='" + fileName + '\'' +
                ", sendTime='" + sendTime + '\'' +
                ", filePath='" + filePath + '\'' +
                ", senderAvatarPath='" + senderAvatarPath + '\'' +
                ", fileSize='" + fileSize + '\'' +
                '}';
    }
}
